import React, {Component} from 'react';
import { Link } from 'react-router-dom';
import './index.scss';
export default class Header extends Component{
    render () {
        return (
            <div className="head-component">
                {/* 头部 */}
                <Link to="/home"><i className="iconfont icon-left-angle"></i></Link>
                <span className="head-card">{this.props.title || '购物车'}</span>
                <Link to="/home"><i className="iconfont icon-home"></i></Link>
            </div>
        )
    }
}
